﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/**
id：帖子id，数据类型为string
postIcon：帖子图标，数据类型为int
time：发帖时间，数据类型为datetime
userId：发帖人，数据类型为int
text：内容，数据类型为string
title：标题，数据类型为string
likeNum：点赞数，数据类型为int
commentNum：评论数，数据类型为int
isVisable：是否对外可见，数据类型为bool
topicType：话题类型，数据类型为string
postType：帖子所属类型，数据类型为string
weight：rank权重，数据类型为double
**/
namespace Api.Model
{
    public class Post
    {
        [Key]
        public int id { get; set; }
        public int postIcon { get; set; }
        public DateTime time { get; set; }
        public int userId { get; set; }
        public string? text { get; set; }
        public string? title { get; set; }
        public int likeNum { get; set; }
        public int commentNum { get; set; }
        public bool isVisable { get; set; }
        public string? topicType { get; set; }
        public string? postType { get; set; }
        public double weight { get; set; }


    }

}
